﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Playbook.Core
{
    public static class Extensions
    {
        public static CommentTypes ToCommentType(this int value)
        {
            return (CommentTypes)Enum.Parse(typeof(CommentTypes), value.ToString());
        }

        public static EventIntervalTypes ToEventInterval(this int value)
        {
            return (EventIntervalTypes)Enum.Parse(typeof(EventIntervalTypes), value.ToString());
        }

        public static MemberStatuses ToMemberStatus(this int value)
        {
            return (MemberStatuses)Enum.Parse(typeof(MemberStatuses), value.ToString());
        }

        public static ProjectStatuses ToProjectStatus(this int value)
        {
            return (ProjectStatuses)Enum.Parse(typeof(ProjectStatuses), value.ToString());
        }

    }
}
